import request from '@/http/request'

//账密登录
export const accountLogin=async (data:any) =>{
  return request({
    url: 'WriteAPI/User/AccountLogin',
    method: 'get',
    params:{
      UserName:data.UserName,
      Password:data.Password
    }
  })
}

//手机号登录
export const phoneLogin=async (data:any)=>{
  return request({
    url: 'WriteAPI/User/PhoneLogin',
    method: 'get',
    params:{
      Phone:data
    }
  })
}

//获取验证码
export const getCode=async (data:any)=>{
  return request({
    url: 'WriteAPI/User/GetCode',
    method: 'get',
    params:{
      Phone:data
    }
  })
}






